{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <div class="toptip">
    <h2>提示：</h2>
    <p>
      设置当次考试属性（命名，如二种人考试）<br>
    </p>
  </div>
<div class="cl pd-5 bg-1 bk-gray form-search">
<form class="mb-20" method="get" action="{:\\think\\Url::build($Request.action)}">
    <input type="text" class="input-text itext" placeholder="科目名称" name="pname" value="{$Request.param.pname}" >

    <div class="select-box sbox">
        <select name="pstatus" class="select">
            <option value="0">状态</option>
            <option value="1a" {$Request.param.pstatus=='1a' ? 'selected' : ''}>启用</option>
            <option value="0a" {$Request.param.pstatus=='0a' ? 'selected' : ''}>禁用</option>
        </select>
    </div> 
    <button type="submit" class="btn btn-success radius"><i class="Hui-iconfont">&#xe665;</i>查询</button>
</form>
</div>
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
            <a class="btn btn-primary radius mr-5" href="javascript:;" onclick="layer_open('添加','/admin/subject/add.html',{w:'100%',h:'100%'})"><i class="Hui-iconfont"></i> 添加</a>
			<a href="javascript:;" onclick="forbid_all('/admin/subject/forbid.html')" class="btn btn-warning radius mr-5"><i class="Hui-iconfont"></i> 禁用</a>
			<a href="javascript:;" onclick="resume_all('/admin/subject/resume.html')" class="btn btn-success radius mr-5"><i class="Hui-iconfont"></i> 恢复</a>
			<a href="javascript:;" onclick="del_all('/admin/subject/delete.html')" class="btn btn-danger radius mr-5"><i class="Hui-iconfont"></i> 删除</a>
        </span>
        <span class="r pt-5 pr-5">
            共有科目数据 ：<strong>{$count ?? '0'}</strong> 条
        </span>
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-20 radius">
        <thead>
        <tr class="text-c">
            {include file="th" /}            
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            {include file="td" /}
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page-bootstrap">{$page ?? ''}</div>
</div>
{/block}

